.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 16rpx 16rpx;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 600rpx;
  overflow: hidden;
  
  .suggestions-section,
  .history-section,
  .hot-section {
    padding: 20rpx;
    border-bottom: 1rpx solid #f0f0f0;
    
    &:last-child {
      border-bottom: none;
    }
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16rpx;
    
    .section-title {
      font-size: 28rpx;
      color: #333;
      font-weight: 500;
    }
    
    .clear-btn {
      font-size: 24rpx;
      color: #999;
      cursor: pointer;
      
      &:active {
        color: #666;
      }
    }
  }
  
  .suggestions-list,
  .history-list {
    max-height: 300rpx;
    
    .suggestion-item,
    .history-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16rpx 0;
      border-bottom: 1rpx solid #f8f8f8;
      cursor: pointer;
      
      &:last-child {
        border-bottom: none;
      }
      
      &:active {
        background: #f8f8f8;
      }
      
      .suggestion-text,
      .history-text {
        font-size: 28rpx;
        color: #333;
        flex: 1;
      }
      
      .remove-btn {
        font-size: 32rpx;
        color: #999;
        padding: 8rpx;
        margin-left: 16rpx;
        cursor: pointer;
        
        &:active {
          color: #666;
        }
      }
    }
  }
  
  .hot-words {
    display: flex;
    flex-wrap: wrap;
    gap: 16rpx;
    
    .hot-word {
      background: #f8f8f8;
      padding: 12rpx 20rpx;
      border-radius: 20rpx;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &:active {
        background: #e8e8e8;
        transform: scale(0.95);
      }
      
      .hot-word-text {
        font-size: 24rpx;
        color: #666;
      }
    }
  }
}

// 搜索建议动画
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestions {
  animation: slideDown 0.3s ease-out;
}
